package cn.itsub.sodo.action.base;

import cn.itsub.sodo.Node;

public abstract class Action {
	public String tag;
	public Node target = null;
	
	public void start(Node target){
		this.target = target;
	}
	public void stop(){
		
	}
	/** 动作是否完成，完成返回true */
	public boolean isDone(){
		return true;
	}
	public abstract Action copy();
	public abstract void step(float dt);
	public abstract void update(float dt);

	/* --------- Get/Set ------------ */
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public Node getTarget() {
		return target;
	}
	public void setTarget(Node target) {
		this.target = target;
	}
}
